# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-traitlets
pkgver=5.1.1
pkgrel=0
pkgdesc="lightweight Traits like module"
url="https://traitlets.readthedocs.io/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-six"
makedepends="py3-setuptools"
options="!check" # No test suite present
source="traitlets-$pkgver.tar.gz::https://github.com/ipython/traitlets/archive/$pkgver.tar.gz"
builddir="$srcdir/${pkgname#py3-}-$pkgver"

replaces="py-traitlets" # Backwards compatibility
provides="py-traitlets=$pkgver-r$pkgrel" # Backwards compatibility

build()	{
	python3	setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
ecb95b31af85e520f7068a803cf89b678c1cc593fcb4b8359c17c58cbb4e7be242fffc78ec04aeded06c2877c97057d045c1894dd4de2fc570ce82e791c77583  traitlets-5.1.1.tar.gz
"
